﻿using System.Collections.Generic;
namespace ChoWorkflowServer.Model
{

    public class CHO_TASKSDataTableComparer : IEqualityComparer<ChoTasksDataSet.CHO_TASKSRow>
    {
        public static readonly IEqualityComparer<ChoTasksDataSet.CHO_TASKSRow> Default = new CHO_TASKSDataTableComparer();

        public bool Equals(ChoTasksDataSet.CHO_TASKSRow x, ChoTasksDataSet.CHO_TASKSRow y)
        {
            if (x == null && y == null) return true;
            if (x == null || y == null) return false;
            if (x.IsTASK_NAMENull() && y.IsTASK_NAMENull()) return true;
            if (x.IsTASK_NAMENull() || y.IsTASK_NAMENull()) return false;
            return x.TASK_NAME == y.TASK_NAME;
        }

        public int GetHashCode(ChoTasksDataSet.CHO_TASKSRow obj)
        {
            return obj == null ? 0 : obj.IsTASK_NAMENull() ? 0 : obj.TASK_NAME.GetHashCode();
        }
    }

    public partial class ChoTasksDataSet
    {

        partial class CHO_TASK_SCHEDULESDataTable
        {
        }
    }
}
